package com.banmao.jdbcDynamicDS;

import com.banmao.jdbcDynamicDS.service.TableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = {"com.banmao"})
public class JdbcDynamicDSApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(JdbcDynamicDSApplication.class, args);
    }

    @Autowired
    private TableService tableService;

    @Override
    public void run(String... args) throws Exception {
        tableService.table2();
    }
}
